package cn.genmer.test.security.alibaba.aliyunai.address;

import cn.genmer.test.security.utils.AliyunAddressUtils;
import cn.genmer.test.security.utils.QmapUtils;
import com.aliyuncs.exceptions.ClientException;

/**
 * 阿里AI-地址标准化
 *
 * 在线测试地址： https://addrp.console.aliyun.com/onlinetesting
 * API参考文档： https://help.aliyun.com/document_detail/169625.html
 */
public class AddressPurificationTestApp {

    public static void main(String[] args) throws ClientException {
        String address = "福建省厦门市嘉庚体育馆";

        String aResult = AliyunAddressUtils.completeAddress(address);
        String qResult = QmapUtils.addressAnalysis(address);

        System.out.println("阿里云查询结果：");
        System.out.println(aResult);
        System.out.println("腾讯地图查询结果：");
        System.out.println(qResult);
    }
}